package com.mright.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.mright.dao.DaoSupport;
import com.mright.entity.SysUser;
import com.mright.service.UserInfoService;

@Service
public class UserInfoServiceImpl implements UserInfoService {
	
	@Autowired
	private DaoSupport dao;
	
	@Override
	public List<SysUser> findAll() {
		try {
			return (List<SysUser>) dao.findForList("UserMapper.findAll", null);
		} catch (Exception e) {
			e.printStackTrace();
			return null;
		}
	}

}
